﻿using System;
using System.Collections.Generic;
using System.Data;
using YmtRpc.Domain;
using YmtRpc.Domain.Enum;

namespace Ymt.Repository
{

    /// <summary>
    /// RPC服务依赖配置的仓储接口类
    /// </summary>
    public interface IServiceconfigRepository : IMySQLRepository<SeviceConfig>
    {
        /// <summary>
        /// 获取RPC服务依赖配置列表
        /// </summary>
        /// <param name="dependencyRelation">依赖关系</param>
        /// <param name="appId">应用ID</param>
        /// <returns></returns>
        List<SeviceConfig> GetList(DependencyRelationEnum dependencyRelation, string appId);

        /// <summary>
        /// 获取应用程序列表
        /// </summary>
        /// <returns>依赖关系</returns>
        List<string> GetAppList(DependencyRelationEnum dependencyRelation);
    }
}
